//SPDX-FileCopyrightText: Copyright 2022-2024 深圳市同心圆网络有限公司
//SPDX-License-Identifier: GPL-3.0-only

package project_board_dao

import "go.mongodb.org/mongo-driver/mongo"

var NodeDao *_NodeDao
var EdgeDao *_EdgeDao

func InitDao(mgoDb *mongo.Database) (err error) {
	NodeDao, err = newNodeDao(mgoDb)
	if err != nil {
		return
	}
	EdgeDao, err = newEdgeDao(mgoDb)
	if err != nil {
		return
	}
	return
}
